package com.kingyun.gpsinspection.purificationservice.dao.mapper.jsm;


import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.EntityPropertyMap;

import java.util.List;
import java.util.Map;

public interface EntityPropertyMapMapper {
    int deleteByPrimaryKey(String mapId);

    int insert(EntityPropertyMap record);

    int insertSelective(EntityPropertyMap record);

    EntityPropertyMap selectByPrimaryKey(String mapId);

    List<EntityPropertyMap> selectEntityPropertyMap(EntityPropertyMap record);

    int updateByPrimaryKeySelective(EntityPropertyMap record);

    int updateByPrimaryKey(EntityPropertyMap record);


    /**
     * 得到和数据项已经关联的特性
     * @param params
     * @return
     */
    Integer getCountOfDataItemFeature(Map<String, Object> params);


    /**
     * 解除绑定特性的汇报点
     * @param devicePropertyId
     * @return
     */
    Integer unBindDataItem(String devicePropertyId);
}